﻿<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" CodeFile="CQuery_ShowReportList.aspx.cs"
    Inherits="CQuery_ShowReportList_cs" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>自定义报表管理</title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager runat="server" />
    <ext:Panel ID="Panel1" Title="自定义报表管理" runat="server" AutoHeight="true" BodyPadding="5px"
        ShowBorder="True" ShowHeader="false" EnableBackgroundColor="true">
        <Items>
            <ext:Form ID="Form5" ShowBorder="False" BodyPadding="5px" EnableBackgroundColor="true"
                ShowHeader="False" runat="server">
                <Rows>
                    <ext:FormRow>
                        <Items>
                            <ext:TwinTriggerBox runat="server" EmptyText="输入要搜索的关键词" ShowLabel="false" ID="ttbSearch"
                                ShowTrigger1="false" OnTrigger1Click="ttbSearch_Trigger1Click" OnTrigger2Click="ttbSearch_Trigger2Click"
                                Trigger1Icon="Clear" Trigger2Icon="Search">
                            </ext:TwinTriggerBox>
                        </Items>
                    </ext:FormRow>
                </Rows>
            </ext:Form>
            <ext:Grid ID="Grid1" Title="自定义报表列表" ShowBorder="true" ShowHeader="true" AutoHeight="true"
                runat="server" EnableCheckBoxSelect="true" EnableRowNumber="True" DataKeyNames="Id"
                EnableTextSelection="true" AllowPaging="true" ForceFitAllTime="true" IsDatabasePaging="true"
                OnPageIndexChange="Grid1_PageIndexChange" AutoScroll="true">
                <Toolbars>
                    <ext:Toolbar ID="Toolbar1" runat="server">
                        <Items>
                            
                            <ext:ToolbarFill ID="ToolbarFill1" runat="server">
                            </ext:ToolbarFill>
                            <ext:Button ID="btnExcel" Text="导出Excel" Icon="PageExcel" EnableAjax="false" DisableControlBeforePostBack="False"
                                OnClick="btnExcel_click" runat="server">
                            </ext:Button>
                        </Items>
                    </ext:Toolbar>
                </Toolbars>
                <Columns>
                    <ext:BoundField DataField="ReportName" DataFormatString="{0}" ExpandUnusedSpace="True"
                        HeaderText="报表名称" />
                    
                    <ext:WindowField ColumnID="myWindowshow" Width="20px" WindowID="Window2" HeaderText="查看"
                        Icon="Table" ToolTip="查看" DataTextFormatString="{0}" DataIFrameUrlFields="Id"
                        DataIFrameUrlFormatString="CQuery_showReport.aspx?id={0}" DataWindowTitleField="ReportName"
                        DataWindowTitleFormatString="查看 - {0}" />
                </Columns>
            </ext:Grid>
        </Items>
    </ext:Panel>
    
    <ext:Window ID="Window2" Title="编辑" Hidden="true" EnableIFrame="true" runat="server"
        CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank"
        EnableMaximize="true" EnableResize="true" Target="Top" Icon="Table" IsModal="True"
        Expanded="true" Width="800px" Height="600px"  >
    </ext:Window>
     
    </form>
</body>
</html>
